﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ScFramework.Core
{

    public class StandaloneInput : VirtualInput {

	    // Use this for initialization
	    void Start () {
		
	    }
	
	    // Update is called once per frame
	
        public override float GetAxis(string name,bool raw = false)
        {
            return raw ? Input.GetAxisRaw(name) : Input.GetAxis(name);
        }

        public override bool GetButton(string name)
        {
            return Input.GetButton(name);
        }

        public override bool GetButtonDown(string name)
        {
            return Input.GetButtonDown(name);
        }

        public override bool GetButtonUp(string name)
        {
            return Input.GetButtonUp(name);
        }

        public override Vector3 MousePosition()
        {
            return Input.mousePosition;
        }

        public override bool GetKeyDown(KeyCode key)
        {
            return Input.GetKeyDown(key);
        }

        public override bool GetKey(KeyCode key)
        {
            return Input.GetKey(key);
        }

        public override bool GetKeyUp(KeyCode key)
        {
            return Input.GetKeyUp(key);
        }
    }
}
